package com.binguo.common.paymodel;

public class YilingPayResult {
    private boolean result;
    private String traceNum;

    public static YilingPayResult success(String traceNum) {
        YilingPayResult yilingPayResult = new YilingPayResult();
        yilingPayResult.setResult(true);
        yilingPayResult.setTraceNum(traceNum);
        return yilingPayResult;
    }

    public static YilingPayResult fail() {
        YilingPayResult yilingPayResult = new YilingPayResult();
        yilingPayResult.setResult(false);
        return yilingPayResult;
    }

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public String getTraceNum() {
        return traceNum;
    }

    public void setTraceNum(String traceNum) {
        this.traceNum = traceNum;
    }
}
